﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005B9 RID: 1465
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishTalkMissionCsReq : IMessage<FinishTalkMissionCsReq>, IMessage, IEquatable<FinishTalkMissionCsReq>, IDeepCloneable<FinishTalkMissionCsReq>, IBufferMessage
	{
		// Token: 0x170012C2 RID: 4802
		// (get) Token: 0x060041DA RID: 16858 RVA: 0x000B3CD7 File Offset: 0x000B1ED7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishTalkMissionCsReq> Parser
		{
			get
			{
				return FinishTalkMissionCsReq._parser;
			}
		}

		// Token: 0x170012C3 RID: 4803
		// (get) Token: 0x060041DB RID: 16859 RVA: 0x000B3CDE File Offset: 0x000B1EDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishTalkMissionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012C4 RID: 4804
		// (get) Token: 0x060041DC RID: 16860 RVA: 0x000B3CF0 File Offset: 0x000B1EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishTalkMissionCsReq.Descriptor;
			}
		}

		// Token: 0x060041DD RID: 16861 RVA: 0x000B3CF7 File Offset: 0x000B1EF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionCsReq()
		{
		}

		// Token: 0x060041DE RID: 16862 RVA: 0x000B3D18 File Offset: 0x000B1F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionCsReq(FinishTalkMissionCsReq other) : this()
		{
			this.talkStr_ = other.talkStr_;
			this.subMissionId_ = other.subMissionId_;
			this.customValueList_ = other.customValueList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060041DF RID: 16863 RVA: 0x000B3D65 File Offset: 0x000B1F65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionCsReq Clone()
		{
			return new FinishTalkMissionCsReq(this);
		}

		// Token: 0x170012C5 RID: 4805
		// (get) Token: 0x060041E0 RID: 16864 RVA: 0x000B3D6D File Offset: 0x000B1F6D
		// (set) Token: 0x060041E1 RID: 16865 RVA: 0x000B3D75 File Offset: 0x000B1F75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string TalkStr
		{
			get
			{
				return this.talkStr_;
			}
			set
			{
				this.talkStr_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170012C6 RID: 4806
		// (get) Token: 0x060041E2 RID: 16866 RVA: 0x000B3D88 File Offset: 0x000B1F88
		// (set) Token: 0x060041E3 RID: 16867 RVA: 0x000B3D90 File Offset: 0x000B1F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubMissionId
		{
			get
			{
				return this.subMissionId_;
			}
			set
			{
				this.subMissionId_ = value;
			}
		}

		// Token: 0x170012C7 RID: 4807
		// (get) Token: 0x060041E4 RID: 16868 RVA: 0x000B3D99 File Offset: 0x000B1F99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MissionCustomValue> CustomValueList
		{
			get
			{
				return this.customValueList_;
			}
		}

		// Token: 0x060041E5 RID: 16869 RVA: 0x000B3DA1 File Offset: 0x000B1FA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishTalkMissionCsReq);
		}

		// Token: 0x060041E6 RID: 16870 RVA: 0x000B3DB0 File Offset: 0x000B1FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishTalkMissionCsReq other)
		{
			return other != null && (other == this || (!(this.TalkStr != other.TalkStr) && this.SubMissionId == other.SubMissionId && this.customValueList_.Equals(other.customValueList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060041E7 RID: 16871 RVA: 0x000B3E14 File Offset: 0x000B2014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalkStr.Length != 0)
			{
				num ^= this.TalkStr.GetHashCode();
			}
			if (this.SubMissionId != 0U)
			{
				num ^= this.SubMissionId.GetHashCode();
			}
			num ^= this.customValueList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060041E8 RID: 16872 RVA: 0x000B3E7C File Offset: 0x000B207C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060041E9 RID: 16873 RVA: 0x000B3E84 File Offset: 0x000B2084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060041EA RID: 16874 RVA: 0x000B3E90 File Offset: 0x000B2090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SubMissionId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.SubMissionId);
			}
			this.customValueList_.WriteTo(ref output, FinishTalkMissionCsReq._repeated_customValueList_codec);
			if (this.TalkStr.Length != 0)
			{
				output.WriteRawTag(90);
				output.WriteString(this.TalkStr);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060041EB RID: 16875 RVA: 0x000B3F00 File Offset: 0x000B2100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalkStr.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.TalkStr);
			}
			if (this.SubMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubMissionId);
			}
			num += this.customValueList_.CalculateSize(FinishTalkMissionCsReq._repeated_customValueList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060041EC RID: 16876 RVA: 0x000B3F70 File Offset: 0x000B2170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishTalkMissionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalkStr.Length != 0)
			{
				this.TalkStr = other.TalkStr;
			}
			if (other.SubMissionId != 0U)
			{
				this.SubMissionId = other.SubMissionId;
			}
			this.customValueList_.Add(other.customValueList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060041ED RID: 16877 RVA: 0x000B3FD6 File Offset: 0x000B21D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060041EE RID: 16878 RVA: 0x000B3FE0 File Offset: 0x000B21E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 42U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.TalkStr = input.ReadString();
						}
					}
					else
					{
						this.customValueList_.AddEntriesFrom(ref input, FinishTalkMissionCsReq._repeated_customValueList_codec);
					}
				}
				else
				{
					this.SubMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040019DB RID: 6619
		private static readonly MessageParser<FinishTalkMissionCsReq> _parser = new MessageParser<FinishTalkMissionCsReq>(() => new FinishTalkMissionCsReq());

		// Token: 0x040019DC RID: 6620
		private UnknownFieldSet _unknownFields;

		// Token: 0x040019DD RID: 6621
		public const int TalkStrFieldNumber = 11;

		// Token: 0x040019DE RID: 6622
		private string talkStr_ = "";

		// Token: 0x040019DF RID: 6623
		public const int SubMissionIdFieldNumber = 2;

		// Token: 0x040019E0 RID: 6624
		private uint subMissionId_;

		// Token: 0x040019E1 RID: 6625
		public const int CustomValueListFieldNumber = 5;

		// Token: 0x040019E2 RID: 6626
		private static readonly FieldCodec<MissionCustomValue> _repeated_customValueList_codec = FieldCodec.ForMessage<MissionCustomValue>(42U, MissionCustomValue.Parser);

		// Token: 0x040019E3 RID: 6627
		private readonly RepeatedField<MissionCustomValue> customValueList_ = new RepeatedField<MissionCustomValue>();
	}
}
